﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BanVeXemPhim_Presentation
{
    public class LichChieuTuanControl
    {
        private LichChieuTuanDAO _lichChieuTuanDao=new LichChieuTuanDAO();
        public LichChieuTuanControl()
        {
            _lichChieuTuanDao=new LichChieuTuanDAO();
        }


        public LichChieuTuanDTO[] DanhSach10LichChieuGanNhat()
        {
            return _lichChieuTuanDao.DanhSach10LichChieuGanNhat();
        }

        public void ThemLichChieuTuan(LichChieuTuanDTO lichChieuTuanDto)
        {
            _lichChieuTuanDao.ThemLichChieuTuan(lichChieuTuanDto);
        }

        public bool KiemTraTruocKhiThem(LichChieuTuanDTO lichChieuTuanDto)
        {
            return _lichChieuTuanDao.KiemTraTruocKhiThem(lichChieuTuanDto);
        }

        public void HuyLichChieuTuan(LichChieuTuanDTO _LichTuanHienTai)
        {
            _lichChieuTuanDao.HuyLichChieuTuan(_LichTuanHienTai);
        }
    }
}
